
.button-primary {
  @extend %button-base;
  @extend %button-primary;
}

.button-secondary {
  @extend %button-base;
  @extend %button-secondary;
}

.button-danger {
  @extend %button-base;
  @extend %button-danger;
}

.button-link {
  background: none;
  border: none;
  display: inline;
  font-weight: normal;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.flash-message {
  border-radius: 5px;
  padding: 16px;
}

.error-message {
  background-color: $error-background-color;
}

.warning-message {
  background-color: $warning-background-color;
}

.success-message {
  background-color: $success-background-color;
}

.info-message {
  background-color: $info-background-color;
}

.standard-form {
  @extend %standard-form;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background-color: #000;
  opacity: .5;
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 1;
  z-index: 1010;
  display: block;
  overflow-y: auto;

  &.signin {
    // Used by the sign-in overlay, which would prefer to be minimally wide, have no background, but
    // retain the close button.
    .modal {
      display: flex;
      flex-direction: row;
      align-items: center;
    }

    .modal-dialog {
      display: inline-block;
    }

    .modal-content {
      background-color: transparent;
      padding: 0px;
    }
  }
}

.modal-dialog {
  position: relative;
  max-width: 600px;
  margin-top: 36px;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
}

.modal-close-button {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  color: transparent;
  overflow: hidden;
  background-image: url("/close-m.svg");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 16px;
  background-color: transparent;
  margin: 0;
  &:hover {
    background-color: #eee;
    cursor: pointer;
  }
}

.modal-content {
  min-height: 32px;
  background-color: #fff;
  opacity: 1;
  padding: 24px;
  >h2 {
    font-weight: normal;
    margin: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
  }
}

button.upgrade-plan-now {
  float: right;
  margin: 6px;
}
